home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Sound / LAME / WarpOS / src / mpglib / common.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-02-13  |  1.4 KB  |  45 lines

  1. /*
  2. ** Copyright (C) 2000 Albert L. Faber
  3. **  
  4. ** This program is free software; you can redistribute it and/or modify
  5. ** it under the terms of the GNU General Public License as published by
  6. ** the Free Software Foundation; either version 2 of the License, or
  7. ** (at your option) any later version.
  8. ** 
  9. ** This program is distributed in the hope that it will be useful,
  10. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ** GNU General Public License for more details.
  13. ** 
  14. ** You should have received a copy of the GNU General Public License
  15. ** along with this program; if not, write to the Free Software 
  16. ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18.  
  19.  
  20. #ifndef COMMON_H_INCLUDED
  21. #define COMMON_H_INCLUDED
  22.  
  23. #include "mpg123.h"
  24. #include "mpglib.h"
  25.  
  26. extern const int  tabsel_123[2][3][16];
  27. extern const long freqs[9];
  28. extern unsigned char *wordpointer;
  29. extern int bitindex;
  30.  
  31.  
  32. #if defined( USE_LAYER_1 ) || defined ( USE_LAYER_2 )
  33.   extern real muls[27][64];
  34. #endif
  35.  
  36. int  head_check(unsigned long head,int check_layer);
  37. int  decode_header(struct frame *fr,unsigned long newhead);
  38. void print_header(struct frame *fr);
  39. void print_header_compact(struct frame *fr);
  40. unsigned int getbits(int number_of_bits);
  41. unsigned int getbits_fast(int number_of_bits);
  42. int set_pointer( PMPSTR mp, long backstep);
  43.  
  44. #endif
  45.